package org.smile.day03;

public class Office {
    private String name;
    private String type;

    private Cleaner cleaner;

    public void clean(Cleaner cleaner){
        System.out.println(cleaner.getName()+"正在清理"+this.getType()+this.getName());
        this.cleaner = cleaner;
    }

    public void showCleaner(){
        System.out.println(this.type+this.getName()+"被"+this.cleaner.getName()+"清理");
    }

    public Cleaner getCleaner() {
        return cleaner;
    }

    public void setCleaner(Cleaner cleaner) {
        this.cleaner = cleaner;
    }

    public Office() {
    }

    public Office(String name, String type) {
        this.name = name;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
